# $Id: PKGBUILD 123185 2011-05-09 03:32:53Z eric $
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=lha
pkgver=1.17
pkgrel=4
pkgdesc="A compression and archive utility for LH-7 format archives"
arch=('i686')
url="http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/"
license=('custom')
depends=('glibc')
source=(http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/linux/${pkgname}117.tar.gz LICENSE lha.man.en)
md5sums=('7896188203cfaf5782d153c4dcd19f57'
         'be11a6fd915099970126b23d683937dd'
         '558fa922133507817137ed4b27764cc8')

package() {
  cd "${srcdir}"
  install -D -m755 lha "${pkgdir}/usr/bin/lha"
  install -D -m644 lha.man "${pkgdir}/usr/share/man/ja/man1/lha.1"
  install -D -m644 lha.man.en "${pkgdir}/usr/share/man/man1/lha.1"
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
